# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=labplot
pkgver=2.10.1
pkgrel=5
arch=(loong64 x86_64)
pkgdesc='KDE Application for interactive graphing and analysis of scientific data'
url='https://labplot.kde.org/'
license=(GPL2)
depends=(cantor
         cblas
         cfitsio
         discount
         fftw
         gcc-libs
         glibc
         gsl
         hdf5
         karchive5
         kcompletion5
         kconfig5
         kconfigwidgets5
         kcoreaddons5
         kcrash5
         ki18n5
         kiconthemes5
         kio5
         kparts5
         ktextwidgets5
         kuserfeedback5
         kwidgetsaddons5
         kxmlgui5
         libcerf
         libmatio
         liborigin
         lz4
         netcdf
         poppler-qt5
         qt5-base
         qt5-mqtt
         qt5-serialport
         qt5-svg
         qxlsx-qt5
         readstat
         syntax-highlighting5
         vector-blf
         zlib)
makedepends=(dbc-parser-cpp
             extra-cmake-modules
             kdoctools5)
source=(https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz)
sha256sums=('2b6e181517cfb6e0dfff7b895f3eb20c7ce359e6732d38545e0757c9aea2daef')

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DENABLE_TESTS=OFF \
    -DLOCAL_DBC_PARSER=OFF \
    -DLOCAL_VECTOR_BLF=OFF
  cmake --build build
}

package(){
  DESTDIR="$pkgdir" cmake --install build
}
